package de.mindshareprojects.datawarehouse.shared;

import java.io.Serializable;
import java.util.Date;

import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;


@PersistenceCapable
public class Campaign implements Serializable {

    /**
	 * 
	 */

	@PrimaryKey
    @Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
    private Long key;

    @Persistent
    private String country;
    
    @Persistent
    private Date creationDate;
    
    @Persistent
    private String userName;
    
    @Persistent
    private String campaignName;
    
    @Persistent
    private Long advertiserId;
    
    @Persistent
    private String advertiserName;

    public Campaign () {
    	this.creationDate = new Date();
    }
    
    public Campaign (String country, String campaignName, Long advertiserId, String advertiserName, String userName) {
    	this.creationDate = new Date();
    	this.campaignName = campaignName;
    	this.advertiserId = advertiserId;
    	this.advertiserName = advertiserName;
    	this.userName = userName;
    	this.country = country;
    }
        
	public String getCampaignName() {
		return campaignName;
	}

	public void setCampaignName(String campaignName) {
		this.campaignName = campaignName;
	}

	public Long getAdvertiserId() {
		return advertiserId;
	}

	public String getAdvertiserName() {
		return advertiserName;
	}

	public void setAdvertiserName(String advertiserName) {
		this.advertiserName = advertiserName;
	}

	
	
	public String getUserName() {
		return userName;
	}
	
	public void setUserName(String userName) {
		this.userName = userName;
	}

	public Date getCreationDate() {
		return creationDate;
	}

	public void setKey(Long key) {
		this.key = key;
	}

	public void setAdvertiserId(Long advertiserId) {
		this.advertiserId = advertiserId;
	}

	public Long getKey() {
		return key;
	}

	public String getCountry() {
		return country;
	}

	public void setCountry(String country) {
		this.country = country;
	}
    
}

